const cheerio = require('cheerio');

function findImg(dom,callback){
    
    let $ = cheerio.load(dom);
    $(".thumb-img").each(function(i,elem){
        let imgSrc = $(this).attr('src');
        //console.log(imgSrc)
        callback(imgSrc,i);
    });
}

module.exports.findImg = findImg;

